import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name:'defalut',
      component: ()=>import('../views/MainView.vue')
    },
    {
      path:'/guide',
      name:'guide',
      component: ()=>import('../views/GuideView.vue')
    },
    {
      path: '/scenario',
      name:'scenario',
      component: ()=>import('../views/ScenarioView.vue'),
      children: [
        {
          path: '',
          component: ()=>import('../views/scenario/DefaultScenarioView.vue'),
        },

        {
          path: 'manage',
          component: ()=>import('../views/scenario/ManageScenarioView.vue'),
        },
      ]
    },
    {
      path: '/backtest',
      name:'backtest',
      component: ()=>import('../views/BacktestView.vue'),
      children: [
        {
          path: '',
          component: ()=>import('../views/backtest/ConfigBacktestView.vue')
        },
        {
          path: 'analyzer',
          component: ()=>import('../views/backtest/AnalyzerBacktestView.vue'),
        },
      ]
    },
    {
      path: '/analyzer',
      name:'analyzer',
      component: ()=>import('../views/AnalyzerView.vue'),
      children: [
        {
          path: '',
          component: ()=>import('../views/analyzer/ConfigAnalyzerView.vue')
        },
        {
          path: 'result',
          component: ()=>import('../views/analyzer/ResultAnalyzerView.vue')
        },
      ]
    },
  ]
})



export default router
